package com.boot.myboot.myBean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "user") //获取属性值
@Data
public class MyProperties {
    private static final String MSG = "admin";
    private String msg = MSG;
}
